<html>
<head>

</head>
<body onclick="ts()">
	<table class="table table-striped table-bordered" cellspacing="0" width="100%" id="evebimenteTB" >
		<thead>
			<tr>
				<th></th>
				<th style="width:200px;">tioimp</th>
				<th>magnitudine</th>
				<th>lat</th>
				<th>long</th>
				<th>adancime</th>
				<th>regiune</th>
			</tr>
		</thead>
		<tbody id="tbodyLista"></tbody>
	</table>
</body>
	<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
	<script src="http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>
	<script>
	function ts(){
		
		$.ajax({ 
						type: "POST",
						data:{"actiune":"verificarequest","email":"dj_brom@yahoo.com"},
						url: "json.php"
			}).done(function(data){
						
					
					$('#evebimenteTB').dataTable( {
						"ajax": data,
						"columns": [
								{ "data": "id_resquest" },
								{ "data": "data_res" },
								{ "data": "tip_res" },
								{ "data": "tip_fetch" },
								{ "data": "list_res" },
								{ "data": "status" }
						]
					})
					
					
			});
	}
	</script>
</html>
